<template>
<div class="">
  <router-view/>
  <c-footer v-show="showFooter" :active="index"></c-footer>
</div>
</template>
<script>
export default {
  data() {
    return {
      showFooter: false,
      index: 0 // 默认停留在首页tab上
    }
  },
  created() {
    setTimeout(() => {
      this.showFooter = true;
      this.$router.push({
        path: '/home'
      })
    }, 100)
  }
}
</script>
<style>
</style>
